<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>人员ID：</label>
                                <input type="text" name="workerId"/>
                            </li>
                            <li>
                                <label>人员姓名：</label>
                                <input type="text" name="workName"/>
                            </li>
                            <li>
                                <label>人员身份证号码：</label>
                                <input type="text" name="workerPassport"/>
                            </li>
                            <li>
                                <label>人员通行时间：</label>
                                <input type="text" class="time-input" placeholder="请选择人员通行时间" name="passageDate"/>
                            </li>
                            <li>
                                <label>使用剂量计编码：</label>
                                <input type="text" name="DOSIMETER"/>
                            </li>
                            <li>
                                <label>RWP任务简码：</label>
                                <input type="text" name="TASK"/>
                            </li>
                            <li>
                                <label>通行区域：</label>
                                <input type="text" name="passageZone"/>
                            </li>
                            <li>
                                <label>RWP任务码：</label>
                                <input type="text" name="RWP"/>
                            </li>
                            <li>
                                <label>RWP任务名称：</label>
                                <input type="text" name="rwpName"/>
                            </li>
                            <li>
                                <label>剂量计值：</label>
                                <input type="text" name="doseValue"/>
                            </li>
                            <li>
                                <label>最大剂量率：</label>
                                <input type="text" name="maxRate"/>
                            </li>
                            <li>
                                <label>计量报警阈值：</label>
                                <input type="text" name="doseThAlarm"/>
                            </li>
                            <li>
                                <label>剂量预警阈值：</label>
                                <input type="text" name="doseThWarning"/>
                            </li>
                            <li>
                                <label>中子计量报警阈值：</label>
                                <input type="text" name="ndoseThAlarm"/>
                            </li>
                            <li>
                                <label>中子计量预警阈值：</label>
                                <input type="text" name="ndoseThWarning"/>
                            </li>
                            <li>
                                <label>剂量率报警阈值：</label>
                                <input type="text" name="rateThAlarm"/>
                            </li>
                            <li>
                                <label>剂量率预警阈值：</label>
                                <input type="text" name="reateThWarning"/>
                            </li>
                            <li>
                                <label>中子剂量率报警阈值：</label>
                                <input type="text" name="nrateThAlarm"/>
                            </li>
                            <li>
                                <label>中子剂量率预警阈值：</label>
                                <input type="text" name="nreateThWarning"/>
                            </li>
                            <li>
                                <label>通行方向：</label>
                                <input type="text" name="passageDirection"/>
                            </li>
                            <li>
                                <label>通行方向：</label>
                                <input type="text" name="DURATION"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:passage:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:passage:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:passage:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:passage:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:passage:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:passage:remove')}]];
        var prefix = ctx + "system/passage";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "【请填写功能名称】",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'ID',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'passageNum',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'workerId',
                    title: '人员ID'
                },
                {
                    field: 'workName',
                    title: '人员姓名'
                },
                {
                    field: 'workerPassport',
                    title: '人员身份证号码'
                },
                {
                    field: 'passageDate',
                    title: '人员通行时间'
                },
                {
                    field: 'DOSIMETER',
                    title: '使用剂量计编码'
                },
                {
                    field: 'TASK',
                    title: 'RWP任务简码'
                },
                {
                    field: 'passageZone',
                    title: '通行区域'
                },
                {
                    field: 'RWP',
                    title: 'RWP任务码'
                },
                {
                    field: 'rwpName',
                    title: 'RWP任务名称'
                },
                {
                    field: 'doseValue',
                    title: '剂量计值'
                },
                {
                    field: 'maxRate',
                    title: '最大剂量率'
                },
                {
                    field: 'doseThAlarm',
                    title: '计量报警阈值'
                },
                {
                    field: 'doseThWarning',
                    title: '剂量预警阈值'
                },
                {
                    field: 'ndoseThAlarm',
                    title: '中子计量报警阈值'
                },
                {
                    field: 'ndoseThWarning',
                    title: '中子计量预警阈值'
                },
                {
                    field: 'rateThAlarm',
                    title: '剂量率报警阈值'
                },
                {
                    field: 'reateThWarning',
                    title: '剂量率预警阈值'
                },
                {
                    field: 'nrateThAlarm',
                    title: '中子剂量率报警阈值'
                },
                {
                    field: 'nreateThWarning',
                    title: '中子剂量率预警阈值'
                },
                {
                    field: 'passageDirection',
                    title: '通行方向'
                },
                {
                    field: 'DURATION',
                    title: '通行方向'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.ID + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.ID + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>